/*-------------------------------------------------------------------------*/
/* News — stone/gray palette (OPE / Top Voters / Top PvP)
/*-------------------------------------------------------------------------*/

.box.type-news {
	--nw-text: #d7d0c4;
	--nw-muted: #8a8378;
	--nw-accent: #b3a26e;
	--nw-accent-soft: #d5c698;
	--nw-border: rgba(115, 109, 98, 0.35);
	--nw-border-strong: rgba(179, 162, 110, 0.45);
	--nw-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.21), 0 1px 1px 0 rgba(0, 0, 0, 0.25);
	--nw-card: linear-gradient(165deg, rgba(51, 49, 45, 0.92) 0%, rgba(25, 23, 20, 0.96) 100%);
	--nw-radius: 8px;

	position: relative;
	overflow: hidden;
	border: 1px solid var(--nw-border) !important;
	border-radius: var(--nw-radius) !important;
	background: var(--nw-card) !important;
	box-shadow: var(--nw-shadow) !important;
	animation: nw-fade 0.4s ease;
}

@keyframes nw-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.box.type-news::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: linear-gradient(180deg, #d5c698, var(--nw-accent));
	z-index: 2;
	pointer-events: none;
}

/* Decorative frame overlays must never block text selection / links */
.box.type-news::after,
.box.type-news > [box-overlay],
.box.type-news > [box-overlay]::before,
.box.type-news > [box-overlay]::after {
	pointer-events: none !important;
}

.box.type-news + .box.type-news {
	margin-top: 0.85rem;
}

/*-------------------------------------------------------------------------*/
/* Owl Carousel (custom)
/*-------------------------------------------------------------------------*/
.owl-carousel.owl-dots-inside\[pos\:top\] .owl-dots,
.owl-carousel.owl-dots-inside\[pos\:bottom\] .owl-dots {
	width: 100%;
	height: auto;
	position: absolute;
}

.owl-carousel.owl-dots-inside\[pos\:top\] .owl-dots    { top: 0; }
.owl-carousel.owl-dots-inside\[pos\:bottom\] .owl-dots { bottom: 0; }

.owl-carousel .owl-dots .owl-dot {
	box-shadow: none;
}

.box.type-news .owl-dots .owl-dot span {
	background: rgba(179, 162, 110, 0.35) !important;
}

.box.type-news .owl-dots .owl-dot.active span {
	background: var(--nw-accent-soft) !important;
}

/*-------------------------------------------------------------------------*/
/* Box head
/*-------------------------------------------------------------------------*/
.box.type-news > .box-head {
	position: relative;
	z-index: 9;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	height: auto !important;
	min-height: var(--box-head-height, 48px);
	padding: 0.85rem 1.15rem !important;
	line-height: 1.25;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #d5c698;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
	background: linear-gradient(180deg, rgba(17, 17, 23, 0.55) 0%, rgba(17, 17, 23, 0.15) 100%) !important;
	border-bottom: 1px solid rgba(179, 162, 110, 0.18);
}

.box.type-news > .box-head::before,
.box.type-news > .box-head::after {
	content: "";
	flex: 1 1 0;
	max-width: 2.75rem;
	height: 1px;
}

.box.type-news > .box-head::before {
	background: linear-gradient(90deg, transparent, rgba(179, 162, 110, 0.55));
}

.box.type-news > .box-head::after {
	background: linear-gradient(90deg, rgba(179, 162, 110, 0.55), transparent);
}

.box.type-news .news-title {
	width: auto;
	max-width: 100%;
	height: auto;
	display: block;
	color: #ebe3cf !important;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0.02em;
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
	transition: color 0.15s ease;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.box.type-news .news-title:hover,
.box.type-news .news-title:focus,
.box.type-news .news-title:active {
	color: var(--nw-accent-soft) !important;
	text-decoration: none !important;
}

.box.type-news.is-single .news-title {
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
}

/*-------------------------------------------------------------------------*/
/* Box body
/*-------------------------------------------------------------------------*/
.box.type-news > .box-body {
	padding: 1rem 1.1rem 1.05rem !important;
	position: relative;
	z-index: 9;
}

.news-shell {
	color: var(--nw-text);
	font-family: var(--font-family-primary, Calibri, system-ui, sans-serif);
}

/*-------------------------------------------------------------------------*/
/* Thumbnail
/*-------------------------------------------------------------------------*/
.box.type-news .news-thumbnail {
	width: 100%;
	height: auto;
	margin: 0 0 0.95rem;
	border-radius: 7px;
	overflow: hidden;
	border: 1px solid var(--nw-border);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.box.type-news .news-thumbnail .thumbnail-item {
	width: 100%;
	height: 180px;
	display: block;
	background-size: cover;
	background-color: rgba(0, 0, 0, 0.35);
	background-repeat: no-repeat;
	background-position: center center;
	border: 0;
	box-shadow: none;
}

.box.type-news.is-single .news-thumbnail .thumbnail-item {
	height: 260px;
}

.box.type-news .news-thumbnail.type-2 .thumbnail-item {
	min-height: 220px;
	aspect-ratio: 16 / 9;
	height: auto;
}

/*-------------------------------------------------------------------------*/
/* Content
/*-------------------------------------------------------------------------*/
.box.type-news .news-content {
	position: relative;
	z-index: 1;
	width: 100%;
	color: var(--nw-text);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.55;
	text-shadow: none;
	-webkit-user-select: text;
	user-select: text;
	pointer-events: auto;
}

.box.type-news .news-content a {
	color: var(--nw-accent-soft);
	text-decoration: underline;
	pointer-events: auto;
	cursor: pointer;
}

.box.type-news .news-content a:hover {
	color: #ebe3cf;
}

.box.type-news .news-content p {
	margin: 0 0 0.75rem;
}

.box.type-news .news-content p:last-child {
	margin-bottom: 0;
}

.box.type-news .news-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	border: 1px solid var(--nw-border);
}

/*-------------------------------------------------------------------------*/
/* Read more
/*-------------------------------------------------------------------------*/
.box.type-news .news-buttons {
	width: 100%;
	margin: 0.95rem 0 0;
	display: flex;
	gap: 0.5rem;
}

.box.type-news .news-readmore {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.85rem;
	border-radius: 6px;
	border: 1px solid rgba(179, 162, 110, 0.4);
	background: rgba(179, 162, 110, 0.14);
	color: #e6d9a8 !important;
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.box.type-news .news-readmore:hover,
.box.type-news .news-readmore:focus {
	background: #111117;
	border-color: rgba(179, 162, 110, 0.55);
	color: #ebe3cf !important;
	text-decoration: none !important;
}

.box.type-news .news-readmore svg {
	flex-shrink: 0;
}

/*-------------------------------------------------------------------------*/
/* Metadata
/*-------------------------------------------------------------------------*/
.box.type-news .news-metadata {
	width: 100%;
	margin: 1rem 0 0;
	padding: 0.7rem 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	border-top: 1px solid rgba(115, 109, 98, 0.25);
	background: none !important;
	min-height: 0 !important;
	text-shadow: none;
}

.box.type-news .news-metadata .metadata-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	border: 1px solid rgba(115, 109, 98, 0.35);
	background: rgba(0, 0, 0, 0.28);
	color: var(--nw-muted);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.2;
}

.box.type-news .news-metadata .metadata-chip__icon {
	color: var(--nw-accent-soft);
	font-size: 0.7rem;
	opacity: 0.9;
}

.box.type-news .news-metadata .metadata-chip a {
	color: var(--nw-accent-soft) !important;
	text-decoration: none !important;
}

.box.type-news .news-metadata .metadata-chip a:hover,
.box.type-news .news-metadata .metadata-chip a:active {
	color: #ebe3cf !important;
}

.box.type-news .news-metadata .metadata-chip--comments {
	margin-left: auto;
}

/* Legacy metadata-col fallback */
.box.type-news .news-metadata .metadata-col {
	color: var(--nw-muted);
	font-size: 0.72rem;
}

.box.type-news .news-metadata .metadata-col a {
	color: var(--nw-accent-soft);
}

/*-------------------------------------------------------------------------*/
/* Tags
/*-------------------------------------------------------------------------*/
.box.type-news .news-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.75rem 0 0;
}

.box.type-news .news-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
	border: 1px solid rgba(179, 162, 110, 0.28);
	background: rgba(179, 162, 110, 0.1);
	color: var(--nw-accent-soft) !important;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	text-transform: lowercase;
}

.box.type-news .news-tag:hover {
	background: rgba(179, 162, 110, 0.2);
	color: #ebe3cf !important;
}

/*-------------------------------------------------------------------------*/
/* Responsive
/*-------------------------------------------------------------------------*/
@media screen and (max-width: 767px) {
	.box.type-news .news-thumbnail .thumbnail-item {
		height: 140px;
	}

	.box.type-news.is-single .news-thumbnail .thumbnail-item {
		height: 180px;
	}

	.box.type-news .news-metadata .metadata-chip--comments {
		margin-left: 0;
	}
}

@media screen and (min-width: 992px) {
	.box.type-news .news-thumbnail .thumbnail-item {
		height: 210px;
	}

	.box.type-news.is-single .news-thumbnail .thumbnail-item {
		height: 300px;
	}
}

/*-------------------------------------------------------------------------*/
/* Comments
/*-------------------------------------------------------------------------*/
.news-comments {
	width: 100%;
	margin-top: 0.85rem;
	padding: 1rem 1.05rem 1rem;
	border-radius: var(--nw-radius, 8px);
	border: 1px solid rgba(115, 109, 98, 0.35);
	background: linear-gradient(165deg, rgba(51, 49, 45, 0.92) 0%, rgba(25, 23, 20, 0.96) 100%);
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.21), 0 1px 1px 0 rgba(0, 0, 0, 0.25);
	position: relative;
	overflow: hidden;
	color: #d7d0c4;
}

.news-comments::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: linear-gradient(180deg, #d5c698, #b3a26e);
	z-index: 1;
	pointer-events: none;
}

.news-comments .comments_area {
	width: 100%;
	margin: 0;
	position: relative;
	z-index: 1;
}

.news-comments .comments_area .comments {
	width: 100%;
	display: block;
}

.news-comments .comments_area .row {
	gap: 0.75rem;
}

.news-comments .comments_area .row .col-md-12 {
	flex: 0;
}

.news-comments .comments_area .row .col-md-12 + .col-md-12 {
	flex: 10;
}

.news-comments .comments_area .comments .comment {
	width: 100%;
	color: #d7d0c4;
	margin: 0.65rem 0 0 !important;
	padding: 0.85rem 0.95rem;
	border-radius: 7px;
	border: 1px solid rgba(115, 109, 98, 0.3);
	background: rgba(0, 0, 0, 0.28);
	position: relative;
}

.news-comments .comments_area .comments .comment::before {
	display: none;
}

.news-comments .comments_area .comments .comment:first-child {
	margin-top: 0 !important;
}

.news-comments .comments_area .comments .comment p {
	margin: 0.45rem 0 0;
	font-size: 0.88rem;
	line-height: 1.5;
	color: #d7d0c4;
}

.news-comments .comments_area .comments .comment i,
.news-comments .comments_area .comments .comment img,
.news-comments .comments_area .comments .comment svg {
	vertical-align: middle;
}

.news-comments .comments_area .comments .comment strong a {
	color: #d5c698 !important;
	text-decoration: none !important;
}

.news-comments .comments_area .comments .comment strong a:hover,
.news-comments .comments_area .comments .comment strong a:active {
	color: #ebe3cf !important;
}

.news-comments .comments_area .comments .comment .avatar {
	width: 64px;
	height: 64px;
	float: none;
	margin: 0;
	border: 1px solid rgba(115, 109, 98, 0.4);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.news-comments .comments_area .comments .staff_comment {
	border-color: rgba(179, 162, 110, 0.45);
	box-shadow: inset 3px 0 0 #b3a26e;
}

.news-comments .comments_area .comments .staff_comment strong a {
	color: #e6c86a !important;
}

.news-comments .Comment-title {
	font-size: 0.82rem;
	color: #8a8378;
}

.news-comments .divider {
	height: 1px;
	margin: 0.55rem 0;
	background: rgba(115, 109, 98, 0.28);
	border: 0;
}

.news-comments form {
	margin: 0.85rem 0 0;
	text-align: right;
	position: relative;
	z-index: 1;
}

.news-comments form > div[class] {
	padding: 0 !important;
}

.news-comments form textarea {
	width: 100%;
	min-height: 100px;
	display: block;
	padding: 0.75rem 0.85rem;
	border-radius: 7px;
	border: 1px solid rgba(115, 109, 98, 0.4);
	background: rgba(0, 0, 0, 0.35);
	color: #e8e2d6;
	font-size: 0.88rem;
	line-height: 1.45;
	resize: vertical;
	outline: none;
	transition: border-color 0.15s ease;
}

.news-comments form textarea:focus {
	border-color: rgba(179, 162, 110, 0.55);
}

.news-comments form textarea::placeholder {
	color: #8a8378;
}

.news-comments form textarea + div,
.news-comments form .text-end {
	color: #8a8378;
	font-size: 0.72rem;
	margin-top: 0.35rem;
}

.news-comments form .nice_button,
.news-comments form input[type="submit"] {
	margin: 0.65rem 0 0;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	border: 1px solid rgba(179, 162, 110, 0.45) !important;
	background: linear-gradient(145deg, #d5c698, #b3a26e) !important;
	color: #1f1d18 !important;
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: none !important;
	text-shadow: none !important;
}

.news-comments form .nice_button:hover,
.news-comments form input[type="submit"]:hover {
	filter: brightness(1.08);
}

.news-comments .post-block {
	position: relative;
	z-index: 1;
}

/*-------------------------------------------------------------------------*/
/* Pagination
/*-------------------------------------------------------------------------*/
.news-pagination {
	width: 100%;
	margin: 0.95rem 0 0;
	justify-content: flex-end;
	gap: 0.3rem;
}

.news-pagination .page-item .page-link,
.news-pagination .page-link {
	padding: 0;
	border-radius: 6px !important;
	border: 1px solid rgba(115, 109, 98, 0.4) !important;
	background: rgba(0, 0, 0, 0.28) !important;
	color: #d5c698 !important;
	overflow: hidden;
}

.news-pagination .page-link a {
	color: inherit;
	display: block;
	padding: 0.4rem 0.7rem;
	text-decoration: none;
}

.news-pagination .page-link a:hover,
.news-pagination .page-link a:active {
	color: #ebe3cf;
}

.news-pagination .page-item.active .page-link,
.news-pagination .active > .page-link {
	background: linear-gradient(145deg, #d5c698, #b3a26e) !important;
	border-color: rgba(179, 162, 110, 0.55) !important;
	color: #1f1d18 !important;
}
